<?php

declare(strict_types=1);

namespace DreamCat\StateMachine\Popo\Define;

use DreamCat\StateMachine\Enums\TransferType;

/**
 * 立刻状态转移
 * @author vijay
 */
class ImmediatelyTransfer extends TransferDetail
{
    /** @var string 目标状态 */
    private string $target;

    /**
     * ImmediatelyTransfer constructor.
     */
    public function __construct()
    {
        $this->setTransferType(TransferType::IMMEDIATELY());
    }

    /**
     * @return string 目标状态
     */
    public function getTarget(): string
    {
        return $this->target;
    }

    /**
     * @param string $target 目标状态
     */
    public function setTarget(string $target): ImmediatelyTransfer
    {
        $this->target = $target;
        return $this;
    }
}

# end of file
